home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_3
/
screenfool
/
sftest.sf
< prev
next >
Wrap
Text File
|
1993-09-12
|
2KB
|
75 lines
/* ARexx program to test ScreenFool */
options results
curr=address()
if curr='' | curr='REXX' then curr='ScreenFool.1'
address value curr
'front Workbench'
call delay(100)
say '->'SFStatus
'command'
'info Workbench NOGUI stem=WB var=ATT'
say '-->'WB.SCREEN
say '-->'WB.TITLE
say '-->'WB.DISPLAY.TITLE
say '-->'WB.DISPLAY.NAME' (0x'd2x(WB.DISPLAY.ID)')'
say '-->'WB.DISPLAY.WIDTH' x 'WB.DISPLAY.HEIGHT
say '-->'WB.DISPLAY.DEPTH' bitplanes.'
say '-->'WB.FONT.NAME WB.FONT.YSIZE
say
say '-->'att
say '-->'result
say
say '->'SFStatus
'hide'
say '->'SFStatus
'show'
say '->'SFStatus
'about'
say '->'SFStatus
'get screens stem=SCREEN'
say '-->'result
say '-->'SCREEN.COUNT
do i=0 to SCREEN.COUNT-1
say "-->"i SCREEN.i
end
say '->'SFStatus
'lockgui'
'getattr displays STEM=DISPLAYMODE'
say '-->'DISPLAYMODE.COUNT
do i=0 to DISPLAYMODE.COUNT-1
say "-->"DISPLAYMODE.i.NAME '(0x'd2x(DISPLAYMODE.i.ID)')' "Properties: 0x"d2x(DISPLAYMODE.i.PROP)
say "-->"DISPLAYMODE.i.TXTWIDTH 'x' DISPLAYMODE.i.TXTHEIGHT "(Graphics: "DISPLAYMODE.i.GFXWIDTH 'x' DISPLAYMODE.i.GFXHEIGHT")"
say "-->"DISPLAYMODE.i.MAXDEPTH 'bitplanes maximum'
say
end
say '--->'RESULT
say '->'SFStatus
'getattr sfscreen'
say '-->'RESULT
say '->'SFStatus
'getattr gleeson'
say '->'SFStatus
'getattr application stem=APP'
say '-->'result
say '-->'app.version
say '-->'app.copyright
say '-->'app.screen
say '-->'app.defscreen
say '-->'app.portname
say '-->'app.screens
say '-->'app.displaymodes
say '-->'app.iversion
say '->'SFStatus
requesters off
about
status 'Look! No requester'
call delay(100)
requesters on
'status Waiting for user input'
say;call writech stdout,'Enter user command: '
parse pull commandline
'command "'commandline'"'
say '->'SFStatus
'unlockgui'